package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineInterestCategory
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/13 13:47
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "兴趣类目查询返回参数")
public class OceanengineInterestCategory {

    /**
     * message : OK
     * code : 0
     * data : [{"num":"7200万","id":"16","name":"游戏","children":[{"num":"5500万","children":[{"num":"260万","children":[{"num":"58万","id":"16020101","name":"动作冒险游戏"}],"id":"160201","name":"动作游戏"}],"id":"1602","name":"游戏（按玩法）"}]}]
     * request_id : XXXXXX
     */

    private String message;
    private int code;
    private String request_id;
    private List<DataBean> data;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "兴趣类目查询返回参数实体")
    public static class DataBean {
        /**
         * num : 7200万
         * id : 16
         * name : 游戏
         * children : [{"num":"5500万","children":[{"num":"260万","children":[{"num":"58万","id":"16020101","name":"动作冒险游戏"}],"id":"160201","name":"动作游戏"}],"id":"1602","name":"游戏（按玩法）"}]
         */

        private String num;
        private String id;
        private String name;
        private List<ChildrenBeanXX> children;

        @NoArgsConstructor
        @Data
        @ApiModel(value = "兴趣类目查询返回参数实体——一级")
        public static class ChildrenBeanXX {
            /**
             * num : 5500万
             * children : [{"num":"260万","children":[{"num":"58万","id":"16020101","name":"动作冒险游戏"}],"id":"160201","name":"动作游戏"}]
             * id : 1602
             * name : 游戏（按玩法）
             */

            private String num;
            private String id;
            private String name;
            private List<ChildrenBeanX> children;

            @NoArgsConstructor
            @Data
            @ApiModel(value = "兴趣类目查询返回参数实体——二级")
            public static class ChildrenBeanX {
                /**
                 * num : 260万
                 * children : [{"num":"58万","id":"16020101","name":"动作冒险游戏"}]
                 * id : 160201
                 * name : 动作游戏
                 */

                private String num;
                private String id;
                private String name;
                private List<ChildrenBean> children;

                @NoArgsConstructor
                @Data
                @ApiModel(value = "兴趣类目查询返回参数实体——三级")
                public static class ChildrenBean {
                    /**
                     * num : 58万
                     * id : 16020101
                     * name : 动作冒险游戏
                     */

                    private String num;
                    private String id;
                    private String name;
                }
            }
        }
    }
}
